#ifndef __EC_READ_WRITE_H__
#define __EC_READ_WRITE_H__

#if 0
typedef struct 
{
	unsigned char data_cell[const_nMaxLine][const_nMaxCell][3];
}struct_cell_data;

int read_PNPCFG(int nbase_addrpara,struct_cell_data* p_type_cell_data, chtype color);
int read_EC_RAM(int addr);
#endif

int ecio_read_256bytes(unsigned short Index,int nlen,unsigned char *bufdata);
int pnp_read_256bytes(int Index,int nlen,unsigned char *bufdata);

int ecio_write_byte(unsigned short Index,int data);
int ecio_read_byte(unsigned short Index,int* data);

int pnp_read_byte(int Index, int* data);
int pnp_write_byte(int Index,int data);



#endif